package com.tg.paw.ums.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author Rubble
 * @date 2020/6/13
 */
@Data
@ApiModel("用户注册")
public class RegisterDto {

    @NotEmpty(message = "注册名称不能为空")
    @ApiModelProperty("用户名、手机、邮箱")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Length(min=6, max=20,message = "密码长度6-20")
    @ApiModelProperty("密码")
    private String password;

    @NotEmpty(message = "确认密码不能为空")
    @Length(min=6, max=20,message = "密码长度6-20")
    @ApiModelProperty("确认密码")
    private String confirmPassword;
}
